/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.javacommunity.model.dao;

import com.javacommunity.model.entity.Tag;
import java.util.List;

/**
 *
 * @author Cong Pham Dinh
 */
public interface TagDAO {
    Tag getTagById(int tagId);
    
    /**
     *
     * @param param condition get Tags
     * @return
     * if(param = 1) then return all listOfTag with active = true
     * else if(param = 0) then return all listOfTag with active = false
     * else return All Tag from DB
     */
    List<Tag> getAllTags(int param);
    
    boolean createTag(Tag tag);
    boolean updateTag(Tag tag);
    boolean deleteTag(Tag tag);
    boolean removeTag(Tag tag);
    boolean restoreTag(Tag tag);
}
